package edu.ccit.shudong.mapper;

import edu.ccit.shudong.entity.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Suting Luo
 * @since 2024-06-14
 */
public interface CommentMapper extends BaseMapper<Comment> {

    List<Comment> findListByPostId(long postId);
    Comment findById(long id);
    List<Comment> findListByUserId(long userId);

}
